package tt.dz.entity.exception;

/**
 * Created by Administrator on 2016/4/22.
 */
public class BizException extends Exception
{
	protected String errorCode;

	public BizException()
	{
		super();
	}

	public BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
	{
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public BizException(String message, Throwable cause)
	{
		super(message, cause);
	}

	public BizException(String message)
	{
		super(message);
	}

	public BizException(Throwable cause)
	{
		super(cause);
	}

	public BizException(String errorCode, String message)
	{
		this(message);
		this.errorCode = errorCode;
	}

	public BizException(String errorCode, String message, Throwable cause)
	{
		this(message, cause);
		this.errorCode = errorCode;
	}

	public BizException(String errorCode, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
	{
		this(message, cause, enableSuppression, writableStackTrace);
		this.errorCode = errorCode;
	}

	public String getErrorCode()
	{
		return errorCode;
	}
}
